<?php
/**
 * Created by PhpStorm.
 * User: 钊鑫
 * Date: 2019/1/26
 * Time: 13:57
 */
namespace app\api\controller;

use app\api\service\Token as TokenService;
use app\api\model\Message2 as MessagetModel;

class MyMessage extends Base
{
    //获取我的消息
    public function gain(){
        $uid = TokenService::getCurrentUid();
        $result = MessagetModel::where(['parent_id'=>$uid])->select();
        return $this->successMessage($result);
    }
}